<?php
	class xl_admin extends database
	{
		function LoadAll()
		{
			$sql = "Select * from admin";
			$this->setQuery($sql);
			$arr = $this->loadAllRow();
			$this->disconnect(); 
			return $arr;
		}
		function capnhat_admin($txttendangnhap,$matkhau,$email,$dienthoai)
		{
			$sql = "UPDATE admin set TenDangNhap='".$txttendangnhap."', Email ='".$email."',MatKhau='".$matkhau."',DienThoai='".$dienthoai."'";
			$this->setQuery($sql);
			return $this->query(); 
		}
		
		function set_matkhau($matkhau)
		{
			$sql = "update admin set MatKhau=".$matkhau;
			$this->setQuery($sql);
			return $this->query(); 
		}
	}
?>